package com.ejlchina.tool.adapter.pageadapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.ejlchina.tool.fragment.viewpager.ConfigViewPagerFragment
import com.ejlchina.tool.fragment.viewpager.WeightCalibrationPagerFragment

class WeightCalibrationPagerAdapter(fragment: Fragment, private val dataList: MutableList<WeightCalibrationPagerFragment>): FragmentStateAdapter(fragment) {
    override fun getItemCount(): Int {
        return dataList.size
    }

    override fun createFragment(position: Int): Fragment {
        return dataList[position]
    }
}